import { PageQuery } from '@/types/api'

export interface IotProductVO {
  productId?: number
  productName?: string
  productCode?: string
  categoryId?: number
  categoryName?: string
  productModel?: string
  brand?: string
  specification?: string
  productImage?: string
  description?: string
  technicalParams?: string
  deviceType?: string
  protocolType?: string
  /** 协议配置（JSON） */
  protocolConfig?: string
  /** 绑定的 Node-RED 规则ID */
  flowId?: number
  dataFormat?: string
  workingVoltage?: string
  workingTemperature?: string
  protectionLevel?: string
  price?: number | string
  supplier?: string
  supplierContact?: string
  status?: string
}

export interface IotProductQuery extends PageQuery {
  productName?: string
  productCode?: string
  categoryId?: number
  deviceType?: string
  status?: string
}

export interface IotProductForm {
  productId?: number
  productName?: string
  productCode?: string
  categoryId?: number
  productModel?: string
  brand?: string
  specification?: string
  productImage?: string
  description?: string
  technicalParams?: string
  deviceType?: string
  protocolType?: string
  /** 协议配置（JSON） */
  protocolConfig?: string
  /** 绑定的 Node-RED 规则ID */
  flowId?: number
  dataFormat?: string
  workingVoltage?: string
  workingTemperature?: string
  protectionLevel?: string
  price?: number | string
  supplier?: string
  supplierContact?: string
  status?: string
}